(global.webpackJsonp = global.webpackJsonp || []).push([ [ "components/kp-message/index" ], {
    "019b": function(t, e, n) {
        n.r(e);
        var i = n("1ab4"), o = n.n(i);
        for (var r in i) "default" !== r && function(t) {
            n.d(e, t, function() {
                return i[t];
            });
        }(r);
        e.default = o.a;
    },
    "1ab4": function(t, e, n) {
        (function(t) {
            Object.defineProperty(e, "__esModule", {
                value: !0
            }), e.default = void 0;
            var i = n("26cb"), o = n("db8f");
            function r(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            function a(t, e) {
                var n = Object.keys(t);
                if (Object.getOwnPropertySymbols) {
                    var i = Object.getOwnPropertySymbols(t);
                    e && (i = i.filter(function(e) {
                        return Object.getOwnPropertyDescriptor(t, e).enumerable;
                    })), n.push.apply(n, i);
                }
                return n;
            }
            function u(t, e, n) {
                return e in t ? Object.defineProperty(t, e, {
                    value: n,
                    enumerable: !0,
                    configurable: !0,
                    writable: !0
                }) : t[e] = n, t;
            }
            r(n("03b8")), r(n("801c"));
            var s = {
                data: function() {
                    return {
                        mainColors: "#F0F0F0",
                        color: "#fff",
                        innerAudioContext: "",
                        audio: "",
                        videoWidth: "225rpx",
                        videoHeight: "400rpx",
                        isAll: !1,
                        content: "",
                        colorPlay: "#105CFB",
                        sliderValue: 0,
                        duration: 1,
                        audio_duration: "00:00",
                        isShowAudio: !0,
                        isAudioplay: !0,
                        nowIndex: "",
                        nowData: "",
                        initialtime: 0,
                        time: "",
                        colorRgb: ""
                    };
                },
                props: {
                    params: {
                        type: Array,
                        default: []
                    },
                    height: {
                        type: Number,
                        default: 0
                    },
                    long: {
                        type: Boolean,
                        default: !1
                    }
                },
                computed: function(t) {
                    for (var e = 1; e < arguments.length; e++) {
                        var n = null != arguments[e] ? arguments[e] : {};
                        e % 2 ? a(Object(n), !0).forEach(function(e) {
                            u(t, e, n[e]);
                        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : a(Object(n)).forEach(function(e) {
                            Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e));
                        });
                    }
                    return t;
                }({}, (0, i.mapGetters)([ "configs", "mainColor", "isIphone" ])),
                watch: {
                    params: {
                        handler: function(t, e) {
                            this.params = t;
                        },
                        immediate: !0,
                        deep: !0
                    },
                    height: function() {
                        this.height = this.height;
                    }
                },
                created: function() {
                    this.innerAudioContext = t.createVideoContext("myAudio", this), this.colorRgb = (0, 
                    o.colorRgba)("#fe3a3a", .1);
                },
                destroyed: function() {
                    this.innerAudioContext = "";
                },
                mounted: function() {},
                methods: {
                    del: function(e) {
                        var n = this;
                        t.showModal({
                            confirmText: "取消",
                            cancelText: "确认",
                            showCancel: !0,
                            title: "信息提示",
                            content: "请确认是否删除?",
                            success: function(t) {
                                t.confirm || n.$emit("delete", e);
                            }
                        });
                    },
                    getHeight: function() {
                        var t = Math.floor((this.height - 30) / 15), e = Math.floor(4 * t) - 11, n = this.params[0].content.length;
                        this.content = n > e ? this.params[0].content.slice(0, e - 5).concat("") : this.params[0].content;
                    },
                    timeupdate: function(t) {
                        var e = JSON.stringify({
                            currentTime: t.detail.currentTime,
                            index: this.newIndex,
                            isShowAudio: this.isShowAudio
                        });
                        this.$emit("timeupdates", e);
                    },
                    sliderChange: function(t) {
                        this.innerAudioContext.seek(Math.ceil(t.detail.value));
                    },
                    goDetail: function(t) {
                        this.$emit("enterDetail", t);
                    },
                    touchAudio: function(t, e) {
                        this.newIndex = e, this.nowData = t, t.isShowAudio ? this.play(t) : this.pause();
                    },
                    onEnd: function() {
                        this.pause(), this.isShowAudio = "end", this.$emit("end", this.newIndex);
                    },
                    play: function(t) {
                        var e = this;
                        this.isShowAudio = "play", this.innerAudioContext.src = t.audio, t.sliderValue > 0 && t.sliderValue < t.audio_duritions - 1 && (this.initialtime = t.sliderValue), 
                        this.$nextTick(function() {
                            setTimeout(function() {
                                e.innerAudioContext.play();
                            }, 200);
                        });
                    },
                    pause: function() {
                        this.innerAudioContext.pause(), this.isShowAudio = "pause", this.$emit("pause", this.newIndex);
                    },
                    stop: function() {
                        this.innerAudioContext.stop();
                    },
                    sliderChanging: function() {}
                }
            };
            e.default = s;
        }).call(this, n("543d").default);
    },
    3094: function(t, e, n) {},
    4336: function(t, e, n) {
        n.r(e);
        var i = n("7540"), o = n("019b");
        for (var r in o) "default" !== r && function(t) {
            n.d(e, t, function() {
                return o[t];
            });
        }(r);
        n("5672");
        var a = n("f0c5"), u = Object(a.a)(o.default, i.b, i.c, !1, null, "638b32cb", null, !1, i.a, void 0);
        e.default = u.exports;
    },
    5672: function(t, e, n) {
        var i = n("3094");
        n.n(i).a;
    },
    7540: function(t, e, n) {
        n.d(e, "b", function() {
            return i;
        }), n.d(e, "c", function() {
            return o;
        }), n.d(e, "a", function() {});
        var i = function() {
            this.$createElement;
            this._self._c;
        }, o = [];
    }
} ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "components/kp-message/index-create-component", {
    "components/kp-message/index-create-component": function(t, e, n) {
        n("543d").createComponent(n("4336"));
    }
}, [ [ "components/kp-message/index-create-component" ] ] ]);